/*
 * @Date: 2023-04-04 09:57:53
 * @LastEditTime: 2023-04-23 14:31:38
 */
import request from '@/utils/request'

const Api = {
  // 新增项目
  NEW_PROJECT: '/project/newProject',
  // 项目列表
  PROJECT_LIST: '/project/projectList',
  // 项目详情
  PROJECT_DETAIL: '/project/projectDetail',
  // 编辑项目
  PROJECT_UPDATE: '/project/updateProject',
  // 删除项目语言
  PROJECT_LANGUAGE_DELETE: '/project/deleteProjectLanguage',
  // 删除项目
  PROJECT_DELETE: '/project/deleteProject',
  // 项目拖拽排序
  PROJECT_SORT: '/project/projectSort',
  // 树状数据
  PROJECT_STRING_TREE: '/project/stringTree',
  // 项目下拉列表
  PROJECT_SELECT_LIST: '/project/projectAll'
}

export const newProject = (data) => request.post(Api.NEW_PROJECT, data)

export const projectList = (data) => request.post(Api.PROJECT_LIST, data)

export const projectDetail = (data) => request.get(Api.PROJECT_DETAIL, data)

export const updateProject = (data) => request.post(Api.PROJECT_UPDATE, data)

export const deleteProjectLanguage = (data) => request.post(Api.PROJECT_LANGUAGE_DELETE, data)

export const deleteProject = (data) => request.post(Api.PROJECT_DELETE, data)

export const projectSort = (data) => request.post(Api.PROJECT_SORT, data)

export const stringTree = (data) => request.get(Api.PROJECT_STRING_TREE, data)

export const projectAll = (data) => request.get(Api.PROJECT_SELECT_LIST, data)
